-- GENERATED SPELL FOR [Urgreth of the Thousand Tombs] --


function spell0_28103(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28103', 5285, 1)
end

function spell1_28103(pUnit, Event) --@Shadow Barrage,Self--
pUnit:FullCastSpellOnTarget(51074,pUnit)
pUnit:RegisterEvent('Sorts_28103', 10000, 1)
end

function Sorts_28103(pUnit, Event)
local choix_sorts_28103 = math.random(0, 1)
if choix_sorts_28103 == 0 then
pUnit:RegisterEvent('spell0_28103', 1, 1)
end
if choix_sorts_28103 == 1 then
pUnit:RegisterEvent('spell1_28103', 1, 1)
end
end

function mob28103_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28103', math.random(1500, 3000), 1)
end

function mob28103_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28103_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28103_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28103, 1, 'mob28103_Action')
RegisterUnitEvent(28103, 2, 'mob28103_Leave')
RegisterUnitEvent(28103, 3, 'mob28103_Kill')
RegisterUnitEvent(28103, 4, 'mob28103_Die')
